import base from './base'
/**
  * 公共配置
  */
export default class News extends base {
    /**
   * 获取职称列表
   */
    static async getDoctor(options) {
        const url = `${this.baseUrl}/com/user/getTitleList`
        return this.get(url, options)
    }


    /**
   * 获取职称列表
   */
    static async getRoleList(options) {
        const url = `${this.baseUrl}/com/user/getRoleList`
        return this.get(url, options)
    }

    /**
  * 获取科室列表
  */
    static async getDepartmentList(options) {
        const url = `${this.baseUrl}/com/user/getDepartmentList`
        return this.get(url, options)
    }

    /**
 * 图片上传
 */
    static async uploadImg(options) {
        const url = `${this.baseUrl}/adm/upload`
        return this.post(url, options)
    }

    /**
 * 参会人员select异步搜索
 */
    static async userSearch(options) {
        const url = `${this.baseUrl}/adm/user/userSearch`
        return this.get(url, options)
    }


    /**
* 获取医院列表
*/
    static async getHospitalList(options) {
        const url = `${this.baseUrl}/com/user/getHospitalList`
        return this.get(url, options)
    }

    /**
* 获取角色列表
*/
static async getRoleListByPage(options) {
    const url = `${this.baseUrl}/adm/role/getRoleListByPage`
    return this.get(url, options)
}
}
